/*
 * @Author: SSD_WIN10
 * @Date: 2019-11-24 11:03:23
 * @Last Modified by: CPS
 * @Last Modified time: 2020-08-26 23:27:11
 *
 * 渲染进程的全局预加载模块,初始化所有需要用到的全局变量,模块,api等
 */

'use strict'
/*是否开启debug */
global.DEBUG_MODE = false

// 初始加载后执行
global.log = function(...msg) {
  if (global.DEBUG_MODE) console.log(msg.toString())
}

global.dir = function(msg) {
  if (global.DEBUG_MODE) console.dir(msg)
}

log('开始加载pre.js')

//初始化需要用到的全局模块
global.path = require('path');
global.fs = require('fs');

/*所有主进城通讯的功能都打包在此模块*/
require('@api/electron.api.js');

/*所有第三方api*/
require('@api/cps.js');

/*创建主要数据模块*/
// require('@app/fielWatcherObject')